package com.campus.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BusPageQueryDTO {

    private Integer currentPage;
    private Integer pageSize;

    //目的地
    private String destination;
    //容量
    private Integer capacity;
    //状态
    private Integer status;

    //出发时间 数据格式为 HH:mm:ss 前端传递时分秒 这里默认为00
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime departureTime;

}
